package registnet.base;

import java.util.ListIterator;
import java.util.Vector;

/**
 * An implementation of a student's checklist.
 */
public class Checklist extends AbstractChecklist {

	/**
	 * Default constructor which creates an "empty" checklist.
	 */
	public Checklist(){
		studentNumber = "";
		planOfCourseWork = null;
		transcript = null;
		courses = new Vector<ICourse>();
		recommendedCourses = new Vector<ICourse>();
		extraCourses = new Vector<ICourse>();
	}
	
	/**
	 * Prints a basic description of the checklist.
	 */
	public void print(){
		System.out.println("[check] checklist: "+studentNumber+" "+courses.size());
		ListIterator<ICourse> li = courses.listIterator();
		while(li.hasNext()){
			ICourse course = li.next();
			System.out.println("[check] checklistCourse: "+course.getCourseCode());
		}
		li = recommendedCourses.listIterator();
		while(li.hasNext()){
			ICourse course = li.next();
			System.out.println("[check] recommendedCourse: "+course.getCourseCode());
		}
		li = extraCourses.listIterator();
		while(li.hasNext()){
			ICourse course = li.next();
			System.out.println("[check] extraCourse: "+course.getCourseCode());
		}
	}
	
}
